-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add QFontMetrics support #898
base: main
Are you sure you want to change the base?
Conversation
} | ||
|
||
#[repr(C)] | ||
pub struct QFontMetrics { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a test in the standalones would be good too :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will add it.
c42f8fa
to
0fa3bbf
Compare
no idea why it crashs... |
const int pointSize = 40; | ||
f.setPointSize(pointSize); | ||
const auto m = constructor_qfontmetrics(f); | ||
QCOMPARE(m.ascent(), 57); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
value depend against font size etc...
=> we can't test it...
No idea what testing from constructor...
No description provided.